<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>recycling_allocator&lt; void &gt;::rebind::other</title>
    <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
    <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
    <link rel="home" href="../../../index.html" title="Asio">
    <link rel="up" href="../recycling_allocator_lt__void__gt___rebind.html"
          title="recycling_allocator&lt; void &gt;::rebind">
    <link rel="prev" href="../recycling_allocator_lt__void__gt___rebind.html"
          title="recycling_allocator&lt; void &gt;::rebind">
    <link rel="next" href="../redirect_error.html" title="redirect_error">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%">
    <tr>
        <td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td>
    </tr>
</table>
<hr>
<div class="spirit-nav">
    <a accesskey="p" href="../recycling_allocator_lt__void__gt___rebind.html"><img src="../../../prev.png"
                                                                                   alt="Prev"></a><a accesskey="u"
                                                                                                     href="../recycling_allocator_lt__void__gt___rebind.html"><img
        src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png"
                                                                                            alt="Home"></a><a
        accesskey="n" href="../redirect_error.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
    <div class="titlepage">
        <div>
            <div><h4 class="title">
                <a name="asio.reference.recycling_allocator_lt__void__gt___rebind.other"></a><a class="link"
                                                                                                href="other.html"
                                                                                                title="recycling_allocator&lt; void &gt;::rebind::other">recycling_allocator&lt;
                void &gt;::rebind::other</a>
            </h4></div>
        </div>
    </div>
    <p>
        <a class="indexterm" name="asio.indexterm.recycling_allocator_lt__void__gt___rebind.other"></a>
        The rebound <code class="computeroutput"><span class="identifier">allocator</span></code>
        type.
    </p>
    <pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">recycling_allocator</span><span
            class="special">&lt;</span> <span class="identifier">U</span> <span class="special">&gt;</span> <span
            class="identifier">other</span><span class="special">;</span>
</pre>
    <h6>
        <a name="asio.reference.recycling_allocator_lt__void__gt___rebind.other.h0"></a>
        <span><a name="asio.reference.recycling_allocator_lt__void__gt___rebind.other.types"></a></span><a class="link"
                                                                                                           href="other.html#asio.reference.recycling_allocator_lt__void__gt___rebind.other.types">Types</a>
    </h6>
    <div class="informaltable">
        <table class="table">
            <colgroup>
                <col>
                <col>
            </colgroup>
            <thead>
            <tr>
                <th>
                    <p>
                        Name
                    </p>
                </th>
                <th>
                    <p>
                        Description
                    </p>
                </th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../recycling_allocator__rebind.html"
                           title="recycling_allocator::rebind"><span class="bold"><strong>rebind</strong></span></a>
                    </p>
                </td>
                <td>
                    <p>
                        Rebind the allocator to another value_type.
                    </p>
                </td>
            </tr>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../recycling_allocator/value_type.html"
                           title="recycling_allocator::value_type"><span class="bold"><strong>value_type</strong></span></a>
                    </p>
                </td>
                <td>
                    <p>
                        The type of object allocated by the recycling allocator.
                    </p>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <h6>
        <a name="asio.reference.recycling_allocator_lt__void__gt___rebind.other.h1"></a>
        <span><a name="asio.reference.recycling_allocator_lt__void__gt___rebind.other.member_functions"></a></span><a
            class="link"
            href="other.html#asio.reference.recycling_allocator_lt__void__gt___rebind.other.member_functions">Member
        Functions</a>
    </h6>
    <div class="informaltable">
        <table class="table">
            <colgroup>
                <col>
                <col>
            </colgroup>
            <thead>
            <tr>
                <th>
                    <p>
                        Name
                    </p>
                </th>
                <th>
                    <p>
                        Description
                    </p>
                </th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../recycling_allocator/allocate.html"
                           title="recycling_allocator::allocate"><span class="bold"><strong>allocate</strong></span></a>
                    </p>
                </td>
                <td>
                    <p>
                        Allocate memory for the specified number of values.
                    </p>
                </td>
            </tr>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../recycling_allocator/deallocate.html"
                           title="recycling_allocator::deallocate"><span class="bold"><strong>deallocate</strong></span></a>
                    </p>
                </td>
                <td>
                    <p>
                        Deallocate memory for the specified number of values.
                    </p>
                </td>
            </tr>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../recycling_allocator/operator_not__eq_.html"
                           title="recycling_allocator::operator!="><span class="bold"><strong>operator!=</strong></span></a>
                    </p>
                </td>
                <td>
                    <p>
                        Inequality operator. Always returns false.
                    </p>
                </td>
            </tr>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../recycling_allocator/operator_eq__eq_.html"
                           title="recycling_allocator::operator=="><span class="bold"><strong>operator==</strong></span></a>
                    </p>
                </td>
                <td>
                    <p>
                        Equality operator. Always returns true.
                    </p>
                </td>
            </tr>
            <tr>
                <td>
                    <p>
                        <a class="link" href="../recycling_allocator/recycling_allocator.html"
                           title="recycling_allocator::recycling_allocator"><span class="bold"><strong>recycling_allocator</strong></span></a>
                        <span class="silver">[constructor]</span>
                    </p>
                </td>
                <td>
                    <p>
                        Default constructor. <br> <span class="silver"> —</span><br> Converting constructor.
                    </p>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <p>
        The uses a simple strategy where a limited number of small memory blocks
        are cached in thread-local storage, if the current thread is running an
        <code class="computeroutput"><span class="identifier">io_context</span></code> or is part of
        a <code class="computeroutput"><span class="identifier">thread_pool</span></code>.
    </p>
    <h6>
        <a name="asio.reference.recycling_allocator_lt__void__gt___rebind.other.h2"></a>
        <span><a name="asio.reference.recycling_allocator_lt__void__gt___rebind.other.requirements"></a></span><a
            class="link" href="other.html#asio.reference.recycling_allocator_lt__void__gt___rebind.other.requirements">Requirements</a>
    </h6>
    <p>
        <span class="emphasis"><em>Header: </em></span><code class="literal">asio/recycling_allocator.hpp</code>
    </p>
    <p>
        <span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
    </p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%">
    <tr>
        <td align="left"></td>
        <td align="right">
            <div class="copyright-footer">Copyright © 2003-2022 Christopher M. Kohlhoff<p>
                Distributed under the Boost Software License, Version 1.0. (See accompanying
                file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
            </p>
            </div>
        </td>
    </tr>
</table>
<hr>
<div class="spirit-nav">
    <a accesskey="p" href="../recycling_allocator_lt__void__gt___rebind.html"><img src="../../../prev.png"
                                                                                   alt="Prev"></a><a accesskey="u"
                                                                                                     href="../recycling_allocator_lt__void__gt___rebind.html"><img
        src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png"
                                                                                            alt="Home"></a><a
        accesskey="n" href="../redirect_error.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
